home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / xanga.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  3KB  |  102 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="xanga"
  3.          version="$Id: xanga.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <sessioncookies>
  7.     <cookie host=".xanga.com" name="GUID" path="/"/>
  8.     <cookie host=".xanga.com" name="u" path="/"/>
  9.     <cookie host=".xanga.com" name="x" path="/"/>
  10.   </sessioncookies>
  11.  
  12.   <detect type="login">
  13.     <url domain="xanga.com"/>
  14.     <form>
  15.       <xpath><![CDATA[[@action="Default.aspx"]]]></xpath>
  16.       <field fieldid="XangaHeader_txtSigninUsername" extractas="username"/>
  17.       <field fieldid="XangaHeader_txtSigninPassword" type="password" extractas="password"/>
  18.     </form>
  19.   </detect>
  20.  
  21.   <detect type="signup">
  22.     <url domain="xanga.com"><path contains="register"/></url>
  23.     <form>
  24.       <field name="txtUsername" extractas="username"/>
  25.       <field name="txtPassword2" type="password" extractas="password"/>
  26.     </form>
  27.   </detect>
  28.  
  29.   <detect type="signup">
  30.     <url domain="xanga.com"><path contains="register"/></url>
  31.     <form>
  32.       <field name="registrationModule$txtUsername" extractas="username"/>
  33.       <field name="registrationModule$txtPassword2" type="password" extractas="password"/>
  34.     </form>
  35.   </detect>
  36.   
  37.   <detect type="signup">
  38.     <url domain="xanga.com"><path contains="signin"/></url>
  39.     <form>
  40.       <field name="txtUsername" extractas="username"/>
  41.       <field name="txtPassword2" type="password" extractas="password"/>
  42.     </form>
  43.   </detect>
  44.  
  45.   <detect type="loggedin">
  46.     <conditions>
  47.       <url domain="xanga.com"/>
  48.       <document>
  49.         <xpath><![CDATA[//center/span/table/tbody/tr/td/div/a/text()[contains(.,"sign out")]]]></xpath>
  50.       </document>
  51.     </conditions>
  52.   </detect>
  53.  
  54.   <detect type="loggedin">
  55.     <conditions>
  56.       <url domain="xanga.com"/>
  57.       <document>
  58.         <xpath><![CDATA[//div[@id="xtoolbar"]//ul[@id="xuser"]//a/text()[contains(.,"sign out")]]]></xpath>
  59.       </document>
  60.     </conditions>
  61.   </detect>
  62.   
  63.   <detect type="loggedout">
  64.     <conditions>
  65.       <url domain="xanga.com"/>
  66.       <document>
  67.         <xpath><![CDATA[//div[@id="xpagewrap"]/div[@id="xmain"]/div[@id="xmaincontent"]/ul/li/a/text()[contains(.,"sign in")]]]></xpath>
  68.       </document>
  69.     </conditions>
  70.   </detect>
  71.  
  72.   <detect type="accountinfo">
  73.     <results>
  74.       <regexp re1="accountid">
  75.         <![CDATA[/"http:\/\/www\.xanga\.com\/private\/home\.aspx\?user=([^"]+)"/]]>
  76.       </regexp>
  77.  
  78.    </results>
  79.   </detect>
  80.  
  81.   <detect type="avatarURLDetect">
  82.     <xpath name="avatarURL" extract="attribute:src">
  83.       <![CDATA[//img[@id='xpProfileImage']]]>
  84.     </xpath>
  85.   </detect>
  86.   
  87.   <detect type="changepassword">
  88.     <url domain="xanga.com"><path contains="editemailpassword"/></url>
  89.     <document>
  90.       <regexp multiline="true" re1="username">
  91.         <![CDATA[/Username:.*?<td[^>]*?>(.*?)<\/td>/]]>
  92.       </regexp>
  93.     </document>
  94.     <form>
  95.       <xpath name="password" extract="value">
  96.         <![CDATA[//input[@type="password"][@name="pwdNewPassword2"]]]>
  97.       </xpath>
  98.    </form>
  99.   </detect>
  100.  
  101. </service>
  102.